package com.zc.study.thread.多线程第三章节.thread3_1_13;

import java.io.IOException;
import java.io.PipedWriter;

public class WriteData {
    public void writeMethod(PipedWriter out) {
        try {
        System.out.println("write :");
        for(int i=0;i<300;i++){
            String outData =""+(i+1);
            out.write(outData);
        }
        System.out.println();

            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
